import request from '@/utils/request'
export function topData() {
  return request({
    url: '/statistics/statistics/topData',
    method: 'get'
  })
}

export function district() {
  return request({
    url: '/statistics/statistics/district',
    method: 'get'
  })
}

export function condition() {
  return request({
    url: '/statistics/statistics/condition',
    method: 'get'
  })
}

export function compare() {
  return request({
    url: '/statistics/statistics/compare',
    method: 'get'
  })
}

export function trend() {
  return request({
    url: '/statistics/statistics/trend',
    method: 'get'
  })
}

export function exportExcel() {
  return request({
    url: '/statistics/excel/export',
    method: 'get'
  })
}

export function getAllFile(bucket, directory) {
  return request({
    url: '/oss/file/getAllFile',
    method: 'get',
    params: { bucket, directory}
  })
}


